<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta charset='utf-8'>
        <meta name="author" content="order by dede58.com"/>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<title>付款</title>
		<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="Cache-Control" content="no-siteapp">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/base.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common.css" />
		<script src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.SuperSlide.2.1.js"></script>
	
	</head>
	<script type="text/javascript">
	$(function(){
	    $("#button1").click(function(){
	    	if(parseFloat(${sessionScope.User.userAccount[sessionScope.User.userAccount.size()-1].accountBalance})>${order.orderPrice})
	    		{ 
	    		$("#form").submit();
	    		}
	    	else
	    		alert("余额不足，请充值！！！");
	    		
	})
	    
	})

	</script>
	<body>
		
		<jsp:include page="title.jsp" flush="true" />
		<jsp:include page="navbar.jsp" flush="true" />
		<!--Main-wrap-->
		<div class="main-wrap graybg">
			<div class="wrapper pt40 pb40">
				<div class="order-detail-box white-box clearfix">
					<p class="fl icon"> <i class="iconfont">&#xe613;</i></p>
					<div class="fr order-info">
						<div class="line-bot pt20 pb20 clearfix">
							<p class="fl l-suc-info">
								<span class="full-db fs26 darkgray">订单提交成功，应付金额 <em class="orange">${order.orderPrice}</em> 元</span>
								<span class="full-db fs14 lh30">请您尽快完成支付，支付成功后7天内发货，否则订单会被自动取消</span>
							</p>
							<p class="fr r-suc-info tr">
								<span class="full-db fs14 lh30">订单号： ${order.orderId}</span>
								<span class="full-db fs14 lh30"><a href="javascript:" class="detail-show">订单详情<i class="icon"></i></a></span>
							</p>
						</div>
						<div class="order-show pt10">
						<span class="full-db fs14 lh30 darkgray">收    件    人:    ${adress.adressName}</span>
							<span class="full-db fs14 lh30 darkgray">手机号码:    ${adress.adressPhone}</span>
							<span class="full-db fs14 lh30 darkgray">收货地址:    ${adress.adressProvince}${adress.adressCity}${adress.adressArea}${adress.adressAdress}</span>
							<span class="full-db fs14 lh30 darkgray">商品信息:    墙角数枝梅，凌寒独自开  X 1</span>
						</div>
					</div>
				</div>
				<div class="pay-order-style white-box mt20">
					<div class="title line-bot">
						<span class="fs18 darkgray ml40 pl10">选择以下支付方式付款</span>
					</div>
					<div class="pay-cont">
						<form action="${pageContext.request.contextPath}/Order/payment" method="post" id="form">
							<input type="hidden" name="orderId" value="${order.orderId}">
							<div class="re_charge line-bot pb30 pt30 clearfix">
								<label class="fl fs16 darkgray pt20">账户余额支付</label>
								<a href="javascript:" class="fl check-inline ml10"><span class="fs16 orange">余额：${sessionScope.User.userAccount[sessionScope.User.userAccount.size()-1].accountBalance}元</span><em></em></a>
							</div>
							<div class="pay-style line-bot pb30 pt30 clearfix">
								<label class="fl fs16 darkgray">支付平台支付</label>
								<a href="javascript:" class="check-inline ml10"><span><img src="${pageContext.request.contextPath}/img/zfb.jpg" /></span><em></em></a>
							</div>
							<div class="next go-pay pt30 clearfix">
								<input type="button" class="radius3 orange-but fs20" value="立即支付" id="button1">
							</div>
						</form>
					</div>

				</div>

			</div>
		</div>
		<!--/end-->

		<jsp:include page="foot.jsp" flush="true" />
	</body>
	<script src="${pageContext.request.contextPath}/js/other.js" type="text/javascript" ></script>
</html>